]> dgit.raspbian.org Git - gnome-shell.git/commit
authPrompt: Fix hang if user types password really fast
authorShivam Mishra <shivam.m@live.com>
Tue, 7 Apr 2015 19:53:42 +0000 (01:23 +0530)
committerRay Strode <rstrode@redhat.com>
Tue, 7 Apr 2015 20:02:21 +0000 (16:02 -0400)
commit6660342d2f41d4d22a23fa0653f8e1f36b6bf7dc
tree2bf7e5cbdecbc87593157583a14911108a367b00
parent92667e3b7ff8e809c6652105e2718a9f02abc2ef
authPrompt: Fix hang if user types password really fast

It's possible for a user to type their password so quickly
that GDM hasn't even had time to ask for the password yet,
much less have time to process the answer.
In that situation, we tuck the user response away as
_preemptiveAnswer, and pass it along to GDM when GDM is finally
ready for it.
The problem is, there's a bug in the code, where we send
null for the service name in the answer, instead of the right
service name (say "gdm-password").
This commit addresses the bug by making sure we don't pass the
answer along, until the service name is properly set in
_queryingService. To ensure that, answering query (answerQuery)
based on _preemptiveAnswer has been shifted right below
this._queryingService = serviceName;

https://bugzilla.gnome.org/show_bug.cgi?id=737586
js/gdm/authPrompt.js